<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>@yield('title' , '台管理模')</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="{{ asset('layuiadmin/layui/css/layui.css') }}" media="all">
    <link rel="stylesheet" href="{{ asset('layuiadmin/style/admin.css') }}" media="all">
</head>
@yield('styles')

<body>

<div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
        <!-- 主体内容 -->
        @yield('contents')

        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>

<script src="{{ asset('layuiadmin/layui/layui.js') }}"></script>

@yield('scripts')

<script>
    layui.config({
        base: '/layuiadmin/'
    }).use(['form','upload'],function() {
        var $ = layui.$
            , form = layui.form
            , upload = layui.upload
            , layer = layui.layer;

        layer.load(1,{shade:0.3})
        $.ajaxSetup({
            'headers': {
                'X-CSRF-TOKEN': '{{ csrf_token() }}'
            }
        });
        
        $(function(){

            layer.closeAll()
        })
    });
</script>
</body>
</html>